<?php
namespace Home\Model;
use Think\Model\ViewModel;
class JmxxcxViewModel extends ViewModel {
	// $cheModel = D("che");
	// $people_cheModel = D("people_che");
	// $peopleModel = D("people");
   	public $viewFields = array(
	    'che'=>array('che_number','cheid','type','color','pic','register_time','use_xingzhi','engine_num','shibie_daihao','fazheng_time'),
	    'people_che'=>array('cheid'=>'cheaid', '_on'=>'che.cheid=people_che.cheid'),
	    'people'=>array('id','name','idcard','dwbm','guoji','age','zhengzhimianmao','biaoshi','jiguan','zhiye','picture','idcard_front','idcard_back','zongjiao','create_time','update_time','is_huzhu','date','minzu','sex','education','hunyin','is_zhongdian', '_on'=>'people.id =people_che.renid'),
	    // 'people_danwei'=>array('renid', '_on'=>'people.id=people_danwei.renid','_type'=>'LEFT'),
	    // 'danwei'=>array('danwei_id','bianma','workname','location','longitude','latitude','faren_name','faren_idcard','baowei_name','baowei_idcard','yingye_pic','baoan_num', '_on'=>'danwei.danwei_id =people_danwei.danweiid'),
   );
}
